package com.xjrsoft.common.utils;

import java.util.concurrent.TimeUnit;
 
public class TimeUtils {
 
    public static long calculateTimestampInterval(long timestamp1, long timestamp2) {
        return TimeUnit.SECONDS.convert(timestamp2 - timestamp1, TimeUnit.MILLISECONDS);
    }
}